]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: Restore icon's expected DND behavior
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 2 Oct 2020 15:10:42 +0000 (17:10 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 2 Oct 2020 15:41:04 +0000 (15:41 +0000)
Commit ff3d32dd186fa added a custom DashIcon subclass that disables
all DND methods from ancestors, including canceling the context
menu timeout and emitting the overview's item-drag-begin signal.

All we want is opting out of the parent's scale-and-fade behavior,
so override those methods instead.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3209

js/ui/dash.js

index dbddd996f7222f8f16c13f8fad6ae53f75c15a31..7e4457e5ef392f47c974c12e3a68447cf5d50bbd 100644 (file)
@@ -31,11 +31,11 @@ class DashIcon extends AppDisplay.AppIcon {
         });
     }
 
-    // Disable all DnD methods
-    _onDragBegin() {
+    // Disable scale-n-fade methods used during DND by parent
+    scaleAndFade() {
     }
 
-    _onDragEnd() {
+    undoScaleAndFade() {
     }
 
     handleDragOver() {